package com.zx.client.hystrix;

import com.zx.client.ComputeClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by syq on 2017/6/22.
 */
@Component
public class ComputeClientHystrix implements ComputeClient {
    @Override
    public Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b) {
        return -9999;
    }

    @Override
    public String getUuid(@RequestParam(value = "a") String a) {
        return "服务中断，请稍后再试。";
    }
}
